package com.kongyz.fontDisplay;

import com.kongyz.AbstractFactorys;
import com.kongyz.color.Color;
import org.apache.commons.lang3.StringUtils;

/**
 * @author kongyz
 * @date 2018/6/21 20:25
 * @Description:
 */
public class FontFactory extends AbstractFactorys {
    @Override
    public FontDisplayMode getFont(String font) {
        if(!StringUtils.isNotEmpty(font)){
            return null;
        }
        if(font.equalsIgnoreCase("Bubble")){
            return new BubbleModel();
        }else if(font.equalsIgnoreCase("speak")){
            return new SpeakFontModel();
        }else if(font.equalsIgnoreCase("text")){
            return new TextModel();
        }
        return null;
    }

    @Override
    public Color getColor(String color) {
        return null;
    }
}
